package com.spring.boot.mvc.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 注意不要有 @ResponseBody 注解，不然不会进入视图解析器
 */
@Controller
@RequestMapping("/mvc")
public class MvcViewController {

    /**
     * http://localhost:8081/mvc/helloJavaView
     * @return
     */
    @GetMapping(value = "/helloJavaView")
    public String helloJavaView(){
        return "helloJavaView";
    }

}
